home *** CD-ROM | disk | FTP | other *** search
-
- ******************************************************************************
- * *
- * HodgePodge: An example Apple IIGS Desktop application *
- * *
- * Written in 65816 Assembler by the Apple IIGS Tools Team *
- * Modified by Ben Koning for "Programmer's Introduction to the Apple IIGS" *
- * *
- * Copyright (c) 1986-87 by Apple Computer, Inc. *
- * *
- * ---------------------------------------------------------------------- *
- * *
- * This program and its derivatives are licensed only for *
- * use on Apple computers. *
- * *
- * Works based on this program must contain and *
- * conspicuously display this notice. *
- * *
- * This software is provided for your evaluation and to *
- * assist you in developing software for the Apple IIGS *
- * computer. *
- * *
- * This is not a distribution license. Distribution of *
- * this and other Apple software requires a separate *
- * license. Contact the Software Licensing Department of *
- * Apple Computer, Inc. for details. *
- * *
- * DISCLAIMER OF WARRANTY *
- * *
- * THE SOFTWARE IS PROVIDED "AS IS" WITHOUT *
- * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, *
- * WITH RESPECT TO ITS MERCHANTABILITY OR ITS FITNESS *
- * FOR ANY PARTICULAR PURPOSE. THE ENTIRE RISK AS TO *
- * THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH *
- * YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU (AND *
- * NOT APPLE OR AN APPLE AUTHORIZED REPRESENTATIVE) *
- * ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, *
- * REPAIR OR CORRECTION. *
- * *
- * Apple does not warrant that the functions *
- * contained in the Software will meet your requirements *
- * or that the operation of the Software will be *
- * uninterrupted or error free or that defects in the *
- * Software will be corrected. *
- * *
- * SOME STATES DO NOT ALLOW THE EXCLUSION *
- * OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY *
- * NOT APPLY TO YOU. THIS WARRANTY GIVES YOU SPECIFIC *
- * LEGAL RIGHTS AND YOU MAY ALSO HAVE OTHER RIGHTS *
- * WHICH VARY FROM STATE TO STATE. *
- * *
- * ---------------------------------------------------------------------- *
- * *
- * ASM65816 Code file "HP.ASM" -- Main routine and COPY's for other files *
- * *
- ******************************************************************************
-
-
-
- ******************************************************************************
- * *
- * Version 1.0 -- August 1987 *
- * *
- ******************************************************************************
-
-
-
- ABSADDR ON
- KEEP HP
- MCOPY HP.MACROS
-
- ****************************************************************
- *
- * The main program
- *
- ****************************************************************
- HodgePodge START
- using GlobalData
-
- ;----------------------------------------------------
- ;
- ; Global equates used throughout the program.
- ;
- True gequ $8000
- False gequ $0000
-
-
- ;----------------------------------------------------
- ;
- ; Set the data bank to code bank so I can use absolute
- ; addressing.
- ;
- phk
- plb
-
- ;----------------------------------------------------
- ;
- ; Save address of D for use later
- ;
- tdc
- sta MyZP
-
- ;----------------------------------------------------
- ;
- ; Load Init everything.
- ;
- pha
- PushWord #$0080 ; mode to use for QD
- jsl StartupTools
- pla ;Necessary because StartUpTools
- ; ;uses Pascal calling convention
- ; ;leaving input params on stack
- pla
- bne AllDone
-
- jsr SetupMenus
-
-
- ;----------------------------------------------------
- ;
- ; Initialize system flags.
- ;
- stz LastWType
- stz QuitFlag
- stz Windex
-
- ;----------------------------------------------------
- ;
- ; Zero the print record handle.
- ;
- stz PrintRecord
- stz PrintRecord+2
-
- ;----------------------------------------------------
- ;
- ; Take events until user quits.
- ;
- jsr MainEvent
-
- ;----------------------------------------------------
- ;
- ; All is done, let's shut down.
- ;
- AllDone anop
- jsl ShutDownTools
-
- PushLong PrintRecord ; get rid of print record handle
- _DisposeHandle ; if PrintRecord has zero in it
- ; ; dispose handle will fail but
- ; ; we don't care.
-
- _Quit QuitParams
-
- END
-
-
-
- COPY 7/E16.WINDOW
- COPY 7/E16.DIALOG
-
- COPY INIT.ASM
- COPY EVENT.ASM
- COPY MENU.ASM
- COPY WINDOW.ASM
- COPY DIALOG.ASM
- COPY FONT.ASM
- COPY PRINT.ASM
- COPY IO.ASM
- COPY GLOBALS.ASM
-